import java.util.Arrays;

public class Test {
    @org.junit.Test
    public void test(){
        String str="http://localhost:8080/Saxon_Blog_war/admin/index.jsp";
        String pathname="/Saxon_Blog_war/admin/index.jsp";
        int i1 = pathname.indexOf ("/", 1);
        int i = str.indexOf (pathname, 0);
        String item = pathname.substring (0, i1);
        System.out.println (str.substring (0, i)+item);
    }
}
